package com.dot.dao;

import java.util.List;

import com.dot.util.Page;

public interface BaseDao<T> {
	
	public void  insert(T t) throws Exception;
	
	public T get(Long id) throws Exception;
	
	public <V extends T> V selectById(Long id);
	
	public void remove(Long id) throws Exception;
	
	public void update(Long id,T q) throws Exception;
	
	public List<T> getAll() throws Exception;
	
	public Page<T> get(int pageNo, int pageSize, T q) throws Exception;
	

}
